package com.leadership.api.dao;

import com.demo2do.core.persistence.annotation.Dao;
import com.demo2do.core.persistence.annotation.Query;
import com.demo2do.core.persistence.annotation.Variable;
import com.leadership.entity.user.User;

/**
 * @author haiyan_xiao
 *
 */
@Dao("hibernate")
public interface UserDao {

    /**
     * 
     * @param email
     * @return
     */
    @Query("FROM User WHERE disabled = false AND email = :email")
    public User load(@Variable("email") String email);
}
